home *** CD-ROM | disk | FTP | other *** search
/ Workbench Add-On / Workbench Add-On - Volume 1.iso / Dev / Amiga-E / E_v3.2a_extras / Tools / AProf / README < prev   
Text File  |  1992-09-02  |  1KB  |  34 lines

  1. AProf has been included in the Amiga E distribution with the
  2. approval of the author, Michael G. Binz. Thanks Michael!
  3.  
  4. [the AProf executable itself can be found in the bin directory]
  5.  
  6. usage of AProf with Amiga E is dead simple:
  7.  
  8. compile your source (say, 'bla.e') with the '-s' switch (SYM/S)
  9. (= add symbols):
  10.  
  11. 1> ec sym bla
  12.  
  13. as you can check with ShowHunk, bla now has a symbolhunk
  14. added to it. Now, load 'bla' into AProf:
  15.  
  16. 1> aprof bla
  17.  
  18. if everything went ok, you'll be seeing a GUI with some
  19. buttons. You'll probably want to toggle 'inclusive subroutines'
  20. off. now start the profile by pressing 'Start'. After your
  21. program has finished, you'll see the amount of time spend
  22. in each PROC. Especially the 'Average' column is interesting.
  23. This will give you a clue which part of your program needs
  24. optimising.
  25.  
  26. notes:
  27. - as you might have noticed, E system functions CAN be profiled
  28.   seperatedly, but library calls CANNOT, i.e. the'll always
  29.   be added to the PROC that calls them. Be aware of this.
  30. - AProf is not always reliable when the executation time
  31.   of the whole program is very short.
  32.  
  33. For further infos, check AProf.guide
  34.